#pragma once
#include "def.h"
#include "context.h"
#include "ActionApiBase.h"
#include "agency.h"



class ActionApiCancleBet : public ActionApiBase
{
public:
    static bool Init();
    
public:
    static void HandleCancle(MsgData&& msg_data);

public:
    static void OnAgencyGet(std::int32_t err_code, stAgency* agency, std::string&& trans);

protected:
    static void Request(const std::string& baseurl, const std::string& trans
        ,std::uint32_t uid, std::uint16_t svtype, std::uint32_t svid, std::uint32_t uuid, std::uint32_t scene_from,
        std::uint64_t order_id, std::uint64_t cycle, std::int64_t bet, std::int64_t preserve, 
        const std::string& agency, const std::string& token, const std::string& currency, std::int64_t currency_unit_multi, const std::string& username, const std::string& platform
        , std::uint32_t agency_id, std::uint32_t gameid, std::int64_t balance);
};















